home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Very Best of Atari Inside
/
The Very Best of Atari Inside 1.iso
/
mint
/
mntlib43
/
mntlib
/
sysvar.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-06
|
556b
|
31 lines
#include <support.h>
#include <osbind.h>
long
get_sysvar(var)
void *var;
{
long ret;
long save_ssp;
save_ssp = (long) Super((void *) 0L);
/* note: dont remove volatile, otherwise gcc will reorder these
statements and we get bombs
*/
ret = *((volatile long *)var);
(void)Super((void *) save_ssp);
return ret;
}
void
set_sysvar_to_long(var, val)
void *var;
long val;
{
long save_ssp;
save_ssp = (long) Super((void *) 0L);
*((volatile long *)var) = val;
(void)Super((void *) save_ssp);
}